﻿using System.Diagnostics.CodeAnalysis;
using UserRegistration.Model.DP;
using UserRegistration.Model.OOP;

namespace UserRegistration.Repository
{
    public interface IRegistrationService
    {
        User Register(string name, string phone, string address);

        User Register([NotNull] UserName name, [NotNull] PhoneNumber phone, [NotNull] Address address);

        //User FindByName(string name);
        //User FindByPhone(string phone);
        //User FindByNameAndPhone(string name, string phone);
    }
}